package com.hk.kindheartedness.model;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @Author：alpha
 * @Create：2022/2/28/22:34
 * @Description：药物
 * @Version：1.0
 */
public class Medicine {

    /**
     * ID 唯一 （默认自增）
     */
    private Integer id;

    /**
     * 药物对应采购员
     */
    private Integer userId;

    /**
     * 药物名称
     */
    private String name;

    /**
     * 药物规格
     */
    private String model;

    /**
     * 药物描述
     */
    private String describe;

    /**
     * 单价
     */
    private BigDecimal unitPrice;

    /**
     * 总价
     */
    private BigDecimal totalPrice;

    /**
     * 药物总数
     */
    private Integer medicineCount;

    /**
     * 药物剩余数
     */
    private Integer remainingNumber;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 修改时间
     */
    private Date updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getModel() {
        return model;
    }

    public void setModel(String model) {
        this.model = model;
    }

    public String getDescribe() {
        return describe;
    }

    public void setDescribe(String describe) {
        this.describe = describe;
    }

    public BigDecimal getUnitPrice() {
        return unitPrice;
    }

    public void setUnitPrice(BigDecimal unitPrice) {
        this.unitPrice = unitPrice;
    }

    public BigDecimal getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(BigDecimal totalPrice) {
        this.totalPrice = totalPrice;
    }

    public Integer getMedicineCount() {
        return medicineCount;
    }

    public void setMedicineCount(Integer medicineCount) {
        this.medicineCount = medicineCount;
    }

    public Integer getRemainingNumber() {
        return remainingNumber;
    }

    public void setRemainingNumber(Integer remainingNumber) {
        this.remainingNumber = remainingNumber;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }

    public Medicine() {
        super();
    }

    public Medicine(Integer id, Integer userId, String name, String model, String describe, BigDecimal unitPrice, BigDecimal totalPrice, Integer medicineCount, Integer remainingNumber, Date createTime, Date updateTime) {
        this.id = id;
        this.userId = userId;
        this.name = name;
        this.model = model;
        this.describe = describe;
        this.unitPrice = unitPrice;
        this.totalPrice = totalPrice;
        this.medicineCount = medicineCount;
        this.remainingNumber = remainingNumber;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    @Override
    public String toString() {
        return "Medicine{" +
                "id=" + id +
                ", userId=" + userId +
                ", name='" + name + '\'' +
                ", model='" + model + '\'' +
                ", describe='" + describe + '\'' +
                ", unitPrice=" + unitPrice +
                ", totalPrice=" + totalPrice +
                ", medicineCount=" + medicineCount +
                ", remainingNumber=" + remainingNumber +
                ", createTime=" + createTime +
                ", updateTime=" + updateTime +
                '}';
    }

}
